package cn.sirun.com.fca.account.model.base;


import cn.sirun.com.fca.account.constant.RequestParamConst;

public class SubmitPhoneRequest {

    /**
     * 国家码，默认为86
     */
    protected String nation = RequestParamConst.DEFAULT_NATION_CODE;

    /**
     * 手机号
     */
    protected String phone;

    /**
     * 验证码信息
     */
    protected Captcha captcha;

    /**
     * 身份证号是否存在
     */
    protected boolean idExist;

    public SubmitPhoneRequest() {
    }

    public SubmitPhoneRequest(String nation, String phone) {
        this.nation = nation;
        this.phone = phone;
    }

    public SubmitPhoneRequest(String nation, String phone, Captcha captcha) {
        this.nation = nation;
        this.phone = phone;
        this.captcha = captcha;
    }

    public SubmitPhoneRequest(String nation, String phone, boolean idExist) {
        this.nation = nation;
        this.phone = phone;
        this.idExist = idExist;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Captcha getCaptcha() {
        return captcha;
    }

    public void setCaptcha(Captcha captcha) {
        this.captcha = captcha;
    }

    public boolean isIdExist() {
        return idExist;
    }

    public void setIdExist(boolean idExist) {
        this.idExist = idExist;
    }

    @Override
    public String toString() {
        return "SubmitPhoneRequest{" +
                "nation='" + nation + '\'' +
                ", phone='" + phone + '\'' +
                ", captcha=" + captcha +
                '}';
    }
}
